package grape.house.rest.buildingunit.vo;
import grape.common.rest.vo.BaseIdVo;

import grape.common.service.trans.TransBy;
import grape.house.service.building.api.IBuildingService;
import grape.house.service.estate.api.IEstateService;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 楼栋单元表
 * </p>
 *
 * @author yangwei
 * @since 2020-09-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="楼栋单元数据响应对象")
public class BuildingUnitVo extends BaseIdVo<String> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号，唯一")
    private String code;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "楼盘表")
    private String estateId;

    @TransBy(type = IEstateService.trans_estate_name,byFieldName = "estateId")
    @ApiModelProperty(value = "楼盘名称")
    private String estateName;

    @ApiModelProperty(value = "楼栋表")
    private String buildingId;


    @TransBy(type = IBuildingService.trans_building_name,byFieldName = "buildingId")
    @ApiModelProperty(value = "楼栋名称")
    private String buildingName;

    @ApiModelProperty(value = "排序")
    private Integer seq;


}
